package masquerade.companion;

import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;


public class Animalismo extends ListActivity {
    
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		// Create an array of Strings, that will be put to our ListActivity
		String[] menuanima = getResources().getStringArray(R.array.ListaAnimalismo);
		// Use your own layout and point the adapter to the UI elements which
		// contains the label
		this.setListAdapter(new ArrayAdapter<String>(this, R.layout.list_menu,
				R.id.list_menu, menuanima));
	}

	@Override
	protected void onListItemClick(ListView l, View v, int position, long id) {
		super.onListItemClick(l, v, position, id);
		
		AnimalismoAct.AnimalismoMenu=position;
		Intent i1 =new Intent();
		i1.setClass(this, AnimalismoAct.class);
		startActivity(i1);
		/*switch (position){
		case 0:
			
    		break;
		case 1:
			Intent i2=new Intent();
			i2.setClass(this, Animalismo2.class);
			startActivity(i2);
			break;
		case 2:
			Intent i3=new Intent();
			i3.setClass(this, Animalismo3.class);
			startActivity(i3);
			break;
		}*/
	}
}
	
	
	
	
	
	
	
	/*public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.disc_anima);
    }
    
    public void onClickAnima1(View v){
		Intent ianima1 =new Intent();
		ianima1.setClass(this, Animalismo1.class);
		startActivity(ianima1);
	}
    */
